package com.ihelin.insurance.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.math.BigDecimal;
import java.io.Serializable;
import java.util.Date;

/**
* 客户
*
* @author iHelin ihelin@outlook.com
* @since 2021-02-27 18:46:44
*/
@TableName("t_customer")
public class CustomerEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId
    private Integer id;
    private String name;
    private String idCard;
    private String insuranceType;
    private BigDecimal insuranceAmount;
    private Integer agentId;
    private Date endTime;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getIdCard() {
        return idCard;
    }

    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }

    public String getInsuranceType() {
        return insuranceType;
    }

    public void setInsuranceType(String insuranceType) {
        this.insuranceType = insuranceType;
    }

    public BigDecimal getInsuranceAmount() {
        return insuranceAmount;
    }

    public void setInsuranceAmount(BigDecimal insuranceAmount) {
        this.insuranceAmount = insuranceAmount;
    }

    public Integer getAgentId() {
        return agentId;
    }

    public void setAgentId(Integer agentId) {
        this.agentId = agentId;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    @Override
    public String toString() {
        return "CustomerEntity{" +
        "id='" + id + '\'' +
        "name='" + name + '\'' +
        "idCard='" + idCard + '\'' +
        "insuranceType='" + insuranceType + '\'' +
        "insuranceAmount='" + insuranceAmount + '\'' +
        "agentId='" + agentId + '\'' +
        "endTime='" + endTime + '\'' +
        '}';
    }

}
